﻿using System;
using System.Web;
using Microsoft.AspNet.SignalR;
namespace SignalRTest
{
    public class ChatHub : Hub
    {
        public void Send(string name, string message)
        {
            // Call the addNewMessageToPage method to update clients.
            Clients.All.addNewMessageToPage(name, message);

            //  Groups.Add(Context.ConnectionId, projectId);
            // Clients.Group(projectId).addNewMessageToPage(name + " " + DateTime.Now, message);
        }
    }
}